﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RightFrame.Master" AutoEventWireup="true" CodeBehind="FileSearch.aspx.cs" Inherits="MyOA.UI.File.FileSearch" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
   
          当前位置：文件搜索
    <style>
        .bg
        {
        	background:url("../../images/tab_14.gif");
        	height:26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContnent" runat="server">

    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class="body_title">文&nbsp;&nbsp;件&nbsp;&nbsp;搜&nbsp;&nbsp;索</div>
<div align="center" style="width: 99%; height: 415px; position:relative; top:40px;">  
    <div style="width:22%; float:left;">
    <asp:Panel ID="pnlSearch" runat="server" BorderWidth="1" BorderColor="#6DC7FC">
    <div style=" width:100%;height:22px; text-align:left; padding-top:11px; ">
    <asp:Image id="img1"  ImageUrl="~/images/search2.gif" runat="server" />文件搜索
    </div>
     <div style=" width:100%;height:40px; text-align:left; padding-top:20px; ">
     要搜索的文件名：<br/>
    <asp:TextBox ID="txtFileName" runat="server"></asp:TextBox>
    </div>
    
     <div style=" width:100%;height:40px; text-align:left; padding-top:20px; ">
     附件包含的文字：<br/>
    <asp:TextBox ID="txtContainWords" runat="server"></asp:TextBox>
    </div>
      <div style=" width:100%;height:40px; text-align:left; padding-top:20px; ">
     创建者姓名：<br/>
    <asp:TextBox ID="txtCreateUser" runat="server"></asp:TextBox>
    </div>
     <div style=" width:100%;height:40px; text-align:left; padding-top:20px; ">
    <asp:imagebutton id="imgbtnSearch" runat="server" Width="64" Height="20" ImageUrl="~/images/file/bseach.gif" OnClick="imgbtnSearch_Click"></asp:imagebutton>
   
    </div>
    
    
        <div style=" width:100%;height:22px; text-align:left; padding-top:11px; ">
    <asp:LinkButton ID="lnkbtnOption" runat="server" OnClick="lnkbtnOption_Click" Text="搜索选项 <<"></asp:linkbutton>
    <asp:Panel ID="pnlOption" runat="server" BorderWidth="1" BorderColor="gray" Visible="false">
        介于：<asp:textbox id="txtBeginTime" runat="server" onFocus="new WdatePicker(this,'%Y-%M-%D',true,'whyGreen')" CssClass="inputCss" Width="109px"></asp:textbox><br/>
    -------<asp:textbox id="txtEndTime" runat="server" onFocus="new WdatePicker(this,'%Y-%M-%D',true,'whyGreen')" CssClass="inputCss" Width="108px"></asp:textbox>
    <asp:CompareValidator id="cvTime" runat="server" Display="Dynamic" ControlToValidate="txtEndTime"	Operator="GreaterThanEqual" ErrorMessage="结束时间不应小于开始时间" ControlToCompare="txtBeginTime"></asp:CompareValidator>
        <br />
    <asp:radiobutton id="rdoThisDay" onclick="quickseldate('day');" runat="server" Text="本日" GroupName="quickdate"></asp:radiobutton>
	<asp:radiobutton id="rdoThisWeek" onclick="quickseldate('week');" runat="server" Text="本周" GroupName="quickdate"></asp:radiobutton>
	<asp:radiobutton id="rdoThisMonth" onclick="quickseldate('month');" runat="server" Text="本月" GroupName="quickdate"></asp:radiobutton>
   
    </asp:Panel>
    </div>
    
    </asp:Panel>
    
    </div>
    <div style="width:auto; float:left; margin-left:10px;">
     <asp:GridView ID="gvFilesInfo" runat="server" Width="510px" 
            style="margin-right: 85px" AutoGenerateColumns="False" 
            DataKeyNames="fileid"  Visible="False" >
            <Columns>                     
                         <asp:BoundField DataField="filesname" HeaderText="文件名称" HeaderStyle-CssClass="bg" /> 
                          <asp:BoundField DataField="filePath" HeaderText="所在文件夹"  HeaderStyle-CssClass="bg"/>   
                          <asp:TemplateField HeaderText="类型" HeaderStyle-CssClass="bg">
                              <ItemTemplate>
                                  <asp:Label ID="Label1" runat="server" Text='<%# Eval("fileType.fileTypeName") %>'></asp:Label>
                              </ItemTemplate>
                         </asp:TemplateField>
                          <asp:TemplateField HeaderText="操作者" HeaderStyle-CssClass="bg">
                              <ItemTemplate>
                                  <asp:Label ID="Label2" runat="server" Text='<%# Eval("fileOwner.userName") %>'></asp:Label>
                              </ItemTemplate>
                             
                         </asp:TemplateField>
                          <asp:BoundField DataField="createDate" HeaderText="创建日期" HeaderStyle-CssClass="bg" /> 
                          
                                                     
                          </Columns>
        </asp:GridView>
        <webdiyer:AspNetPager ID="anpFileInfo" runat="server" 
            onpagechanged="anpFileInfo_PageChanged"
            PageSize="5"  PagingButtonSpacing="10px"
                        PageIndexBoxType="DropDownList" ShowNavigationToolTip="True" CssClass="paginator"
                         CurrentPageButtonClass="cpb" ShowPageIndexBox="Always">
        </webdiyer:AspNetPager>   
</div>    
</ContentTemplate></asp:UpdatePanel>
</asp:Content>

